PreviousNextTracker indexSee it online !

(71/308) 603 - ftp plugin: can't rename file

when I try to rename a file from the File System
Browser on a server using the FTP plugin I have this error:
Cannot override existing file ftp://...../new_file_name

jEdit version 4.2final
ftp plugin version 0.7.3

Submitted azzo666 - 2006-05-11 09:58:16 Assigned
Priority 5 Labels
Status open Group None
Resolution None

Comments

2006-06-12 02:42:57
ezust

- **summary**: rename file with ftp plugin --> ftp plugin: can't rename file

2006-07-17 17:02:40
olearyni

Logged In: YES
user_id=631957

Unable to recreate with latest jedit (4.3pre5) and ftp (0.7.9)

Not sure what the latest FTP plugin is for 4.2 - 0.7.9
certainly requires 4.3pre4.

Can you try with the latest FTP plugin you can with 4.2?

2006-07-17 17:02:40
olearyni

- **status**: open --> pending

2006-07-18 07:29:01
azzo666

Logged In: YES
user_id=1512239

Hi.
I've installed the 4.3pre5 and the ftp plugin 0.7.9 but I've
the same error.

2006-07-18 07:29:02
azzo666

- **status**: pending --> open

2006-07-18 12:10:34
olearyni

Logged In: YES
user_id=631957

Possibly some silly questions...

1) what is the original file name?
2) what are you wanting to rename it to?
3) does a file already exist with that name?\!

or does it not matter what new name you try to give it?

Have you verified the file permissions at the remote side?

2006-07-18 19:56:01
azzo666

Logged In: YES
user_id=1512239

Is not important the original name of the file. I've tried
with many file (like test.php, controller.php ecc ecc) and I
tried to add a underscore or I tried to convert some char to
upper case (my_test.php -> myTest.php).
All of the files are created with jedit and I modify them
usually. The permission for all files is 777.
I use window px and the server is a linux machine.
The server address is in a internal network and I reach it
with the ip (192.168.0.39).
Tomorrow I'll try to rename a file on an other server.

2006-07-19 07:23:52
azzo666

Logged In: YES
user_id=1512239

It's the same with another server.
If I rename a local file it works (fisically on my pc or in
a directory in a virtual driver created with Samba), with
the ftp plugin no

2006-09-27 20:35:33
scarfhogg

Logged In: YES
user_id=936790

This problem still exists in 4.3pre6 with FTP 0.8

2007-06-28 14:35:09
scarfhogg

Logged In: YES
user_id=936790
Originator: NO

Still a problem for me uding 4.3pre8 and FTP 0.9.1. Would be cool if somebody could look into this. Below is the relevant part of the Activity Log:

\[debug\] WorkThread: Running in work thread: \[id=600,run=org.gjt.sp.jedit.browser.BrowserIORequest\[type=RENAME,vfs=ftp.FtpVFS@14683c0,path1=ftp://user123@example.com:21/my/path/file.htm,path2=ftp://user123@example.com:21/my/path/file_renamed.htm\]\]
\[debug\] ConnectionManager: Thread\[jEdit I/O #1,1,jEdit I/O\]: Connecting to ftp://example.com:21
\[debug\] FtpClient: Thread\[jEdit I/O #1,1,jEdit I/O\]: received response: 220 FTP Server ready.
\[debug\] FtpClient: Thread\[jEdit I/O #1,1,jEdit I/O\]: sending command: USER user123
\[debug\] FtpClient: Thread\[jEdit I/O #1,1,jEdit I/O\]: received response: 331 Password required for user123
\[debug\] FtpClient: Thread\[jEdit I/O #1,1,jEdit I/O\]: sending command: PASS <password removed for security>
\[debug\] FtpClient: Thread\[jEdit I/O #1,1,jEdit I/O\]: received response: 230 User user123 logged in
\[debug\] FtpClient: Thread\[jEdit I/O #1,1,jEdit I/O\]: sending command: PWD
\[debug\] FtpClient: Thread\[jEdit I/O #1,1,jEdit I/O\]: received response: 257 "/" is the current directory
\[debug\] ConnectionManager: Thread\[jEdit I/O #1,1,jEdit I/O\]: Connection 34:example.com locked
\[debug\] FtpClient: Thread\[jEdit I/O #1,1,jEdit I/O\]: sending command: CWD /my/path/
\[debug\] FtpClient: Thread\[jEdit I/O #1,1,jEdit I/O\]: received response: 250 CWD command successful
\[debug\] FtpClient: Thread\[jEdit I/O #1,1,jEdit I/O\]: sending command: TYPE I
\[debug\] FtpClient: Thread\[jEdit I/O #1,1,jEdit I/O\]: received response: 200 Type set to I
\[debug\] FtpClient: Thread\[jEdit I/O #1,1,jEdit I/O\]: sending command: PASV
\[debug\] FtpClient: Thread\[jEdit I/O #1,1,jEdit I/O\]: received response: 227 Entering Passive Mode (87,106,55,152,217,107).
\[debug\] FtpClient: Thread\[jEdit I/O #1,1,jEdit I/O\]: sending command: LIST file_renamed.htm
\[debug\] FtpClient: Thread\[jEdit I/O #1,1,jEdit I/O\]: received response: 150 Opening ASCII mode data connection for file list
\[debug\] FtpClient: Thread\[jEdit I/O #1,1,jEdit I/O\]: received response: 450 file_renamed.htm: No such file or directory
\[error\] ErrorListDialog$ErrorEntry: ftp://user123@example.com:21/my/path/file.htm:
\[error\] ErrorListDialog$ErrorEntry: Cannot overwrite existing file ftp://user123@example.com:21/my/path/file_renamed.htm.
\[debug\] ConnectionManager: Thread\[jEdit I/O #1,1,jEdit I/O\]: Connection 34:example.com released